package org.zfes.snowier.cloud.zbss.cms.tag.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.cms.tag.model.CmsTag;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface CmsTagMapper extends BaseMapper<CmsTag>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<CmsTag> selectModelListPage(ParamMap params);
	
	
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);

	CmsTag selectByTagName(@Param("tagName")String tagName, @Param("siteId")Long siteId);

	int makeRefCountTotal(@Param("tagName")String tagName, @Param("siteId")Long siteId);
	
	int subtractRefCountTotal(@Param("tagId")Long tagId);
}
